package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 日本都道府县以及对应邮编信息
 * </p>
 * @author hua
 * @since 2023-12-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_jp_region")
public class JpRegionDo extends Model<JpRegionDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 都道府县 名称
     */
    @TableField("name")
    private String name;

    /**
     * 地区id（state）
     */
    @TableField("jp_state_id")
    private Long jpStateId;

    /**
     * 邮编开始值
     */
    @TableField("post_code_start")
    private Integer postCodeStart;

    /**
     * 邮编结束值
     */
    @TableField("post_code_end")
    private Integer postCodeEnd;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
